package com.bingxue.edu.management.shop.model.req;

import com.bingxue.edu.common.enums.PayTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * 订单创建请求
 *
 * @author panbo
 * @since 2024/08/27 14:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单创建请求")
public class OrderCreateReq extends OrderPriceCalculateReq {

    @Schema(description = "备注（内部）")
    @Length(max = 255, message = "备注（内部）长度不能超过 {max} 个字符")
    private String remark;

    @Schema(description = "备注（外部）")
    @Length(max = 255, message = "备注（外部）长度不能超过 {max} 个字符")
    private String remarkOut;

    @Schema(description = "支付方式")
    private PayTypeEnum payType;

    @Schema(description = "销售顾问")
    private String sellerId;

}
